{% from 'IcsocUIBundle:Macro:actions.html.twig' import button %}
{% import 'IcsocIvrBundle:Ivr:node_fields.html.twig' as ivr %}

<form class="form-horizontal" action="" method="post" id="form" name="form">
    {{ ivr.node_name()  }}
    {{ ivr.jump_nodes(nodes) }}
    {{ ivr.ivr_count() }}
    <div class="clearfix well well-sm">
        <div class="col-md-offset-4 col-md-8">
            {{ button('Save', 'btn-save-attr') }}
        </div>
    </div>
</form>
{#
<script type="application/javascript" language="JavaScript">
    $(document).ready(function() {
        $("#form").validate({
            {{ jqvalidator() }}
            debug:true,
            errorPlacement: function(error, element) {
                error.appendTo(element.parent());
            },
            rules: {
                'form[jump][nodes]': {
                    required:true
                }
            },
            messages: {
                'form[jump][nodes]': {
                    required:"{{ 'Please select jump node'|trans  }}"
                }
            }
        });
        jQuery.extend(jQuery.validator.messages, {
            'required':'{{ 'This field is required'|trans }}'
        });
    });
</script>#}
